Contribution org.nuxeo.ecm.user.center.profile.commandline--command
In component org.nuxeo.ecm.user.center.profile.commandline
org.nuxeo.ecm.user.center.profile.commandline
inside nuxeo-user-profile-9.10.jar /OSGI-INF/commandline-contrib.xml
This contribution is part of XML component Extension Point
Extension point command of component CommandLineExecutorComponent.Contributed Items
XML Source
<extension point="command" target="org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent">
<command enabled="true" name="resizeAvatar">
<commandLine>convert</commandLine>
<parameterString>-define registry:temporary-path=#{nuxeo.tmp.dir} -quiet #{sourceFilePath}[0] jpg:- | convert - -resize #{targetWidth}x#{targetHeight}> #{targetFilePath}</parameterString>
<winParameterString>-define registry:temporary-path=#{nuxeo.tmp.dir} -quiet #{sourceFilePath}[0] -resize #{targetWidth}x#{targetHeight}> #{targetFilePath}</winParameterString>
<installationDirective>You need to install ImageMagick.</installationDirective>
</command>
</extension>